import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Cesium from '../views/Cesium.vue'
import Point from '../views/Point.vue'
import Line from '../views/Line.vue'
import Face from '../views/Face.vue'
import Polygon from '../views/Polygon.vue'
import Test from '../views/Test.vue'


Vue.use(VueRouter)

  const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  {
    path: '/cesium',
    name: 'Cesium',
    component: Cesium
  },
  {
    path: '/point',
    name: 'Point',
    component: Point
  },
  {
    path: '/line',
    name: 'Line',
    component: Line
  },
  {
    path: '/face',
    name: 'Face',
    component: Face
  },
  {
    path: '/polygon',
    name: 'polygon',
    component: Polygon
  },
  {
    path: '/test',
    name: 'test',
    component: Test
  }
]

const router = new VueRouter({
  routes
})

export default router
